package demo2;

public class test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        Keyboard keyboard = new Keyboard();
        Microphone microphone = new Microphone();

        computer.open();
        System.out.println();
        computer.useDevice(mouse);
        System.out.println("================");
        computer.useDevice(keyboard);
        System.out.println("================");
        computer.useDevice(microphone);
        System.out.println();
        computer.close();
    }
}
